package com.by.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.context.annotation.Import;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;

@Data
@ApiModel("供应商")
public class Supplier {
    @ApiModelProperty("供应商ID")
    int id;
    @ApiModelProperty("供应商名称")
    @NotBlank(message = "供应商名称不能为空")
    String supplierName;

    @ApiModelProperty("地区")
    String area;

    @ApiModelProperty("地址")
    String address;

    @ApiModelProperty("公司简介")
    String describes;

    @ApiModelProperty("主营产品分类")
    int category;

    @ApiModelProperty("报价系数")
    String factor;

    @ApiModelProperty("logo")
    String logo;

    @ApiModelProperty("材质种类")
    String material;

    String bank;

    @ApiModelProperty("营业执照")
    String license;

    String moneyaccount;

    String companyname;

    String tax_number;

    @ApiModelProperty("账户")
    String account;

    @ApiModelProperty("密码")
    String password;
    @ApiModelProperty("备注")
    String remark;
    @ApiModelProperty("运费")
    int shippingfee;
    @ApiModelProperty("入库费")
    int warehousing;
    @ApiModelProperty("产品参数")
    int productparameters;
    @ApiModelProperty("联系人")
    @Valid
    SupplierContact contact;


//    @ApiModelProperty("供应商联系人手机号")
//    String contantphone;
}
